package com.lin.manager.file.service;

import com.lin.manager.file.model.vo.FileVo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * @作者: 林江
 * @创建时间: 2024/3/22
 * @功能:
 */
public interface FileService {
    /**
     * 文件上传
     *
     * @param file
     */
    Map upload(MultipartFile file) throws Exception;

    void download(FileVo vo, String code, HttpServletResponse response) throws Exception;
}
